package com.service.imp;

import com.mapper.StudentMapper;
import com.pojo.Student;
import com.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentServiceImp implements StudentService {
    @Autowired
    StudentMapper studentMapper;

    @Override
    public List<Student> selectFindAll(Integer id,int startRow, int startNow) {
        return studentMapper.selectFindAll(id,startRow,startNow);
    }

    @Override
    public List<Student> IfSelect(int id) {
        return studentMapper.IfSelect(id);
    }

    @Override
    public int getCount() {
        return studentMapper.getCount();
    }

    @Override
    public List<Student> NoClass() {
        return studentMapper.NoClass();
    }

    @Override
    public int updateClass(int [] stuId, int claId) {
        return studentMapper.updateClass(stuId,claId);
    }
}
